package cn.lblbc.downloadlib;

/**
 * 下载任务简要信息（用于查询接口返回）
 */
public class DownloadInfo {
    public long taskId;
    public String packageName;
    public long totalSize;         // 所有关联文件的总大小
    public long downloadedSize;    // 所有关联文件已下载的总大小
    public int status;             // 任务状态
    public boolean isWifiOnly;     // 是否仅限WiFi下载
    public long createTime;        // 创建时间
    public long updateTime;        // 更新时间
    public String extraInfo;       // 扩展信息

    public DownloadInfo() {
    }

    public long getTaskId() {
        return taskId;
    }

    public void setTaskId(long taskId) {
        this.taskId = taskId;
    }

    public String getPackageName() {
        return packageName;
    }

    public void setPackageName(String packageName) {
        this.packageName = packageName;
    }

    public long getTotalSize() {
        return totalSize;
    }

    public void setTotalSize(long totalSize) {
        this.totalSize = totalSize;
    }

    public long getDownloadedSize() {
        return downloadedSize;
    }

    public void setDownloadedSize(long downloadedSize) {
        this.downloadedSize = downloadedSize;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public boolean isWifiOnly() {
        return isWifiOnly;
    }

    public void setWifiOnly(boolean wifiOnly) {
        isWifiOnly = wifiOnly;
    }

    public long getCreateTime() {
        return createTime;
    }

    public void setCreateTime(long createTime) {
        this.createTime = createTime;
    }

    public long getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(long updateTime) {
        this.updateTime = updateTime;
    }

    public String getExtraInfo() {
        return extraInfo;
    }

    public void setExtraInfo(String extraInfo) {
        this.extraInfo = extraInfo;
    }
}